import Vue from 'vue'
import Vuex from 'vuex'
import state from './state'
import getters from './getters'
import actions from './actions'
import mutations from './mutations'
Vue.use(Vuex)
// vue2 对应 vuex3,使用vuex4报错
// vue3 才能使用vuex4
const store = new Vuex.Store({
  state,
  getters,
  actions,
  mutations
})
export default store
